                        <form method="POST" action="createContract.php" name="createContract" id="createContract">
                        <div class="view-booking-popup">
                        <h1>اضافة حجز / تأجير جديد</h1>
                        <hr />
                        <div class="bookings-edit-container">
                        <span class="text-right small"> رقم العقد / الحجز : #####</span>
                        <h2>الفترة</h2>
                        <div class="bookings-edit-row">
                        <table class="edit-bookings-table add_bookings">
                            	<tr>
                                    <td width="70px">&nbsp;نوع الايجار</td>&nbsp;
                                    <td>
                                      <select name="rent_type" style="width:70px; margin-left:10px;" class="rent_type">
                                        <option  value="0">يومى</option>
                                        <option  value="1">إسبوعى</option>
                                        <option value="2">شهرى</option>
                                      </select>                                    
                                    </td>
                                    <td>ميلادي</td>
                                    <td >من  :</td>
                                    <td>
                                      <input type="text" style="width:60px; margin-right:10px" class="small-input check-today" name="from" id="from-miladi" placeholder="" />
                                    </td>
                                    <td style="width:30px;">إلى  :</td>
                                    <td style="width:50px;">
                                      <input type="text" style="width:60px; margin:0 10px" class="small-input" name="to" id="to-miladi" placeholder="" />
                                    </td>
                                    <td width="75px">عدد الأيام:</td>
                                    <td><input type="text" class="xsmall-input period-days" name="period"  id="daily" /></td>
                                </tr>
                                <tr>
                                    <td>الموافق:</td>
                                    <td></td>
                                    <td>هجري</td>
                                    <td >من:</td>
                                    <td colspan="3">
                                      <div class="show-from-hijri-from"></div>
                                      <input type="hidden" value="" name="hijri-from" id="show-from-hijri-from"/>
                                    </td>
                                    <td>عدد الأشهر:</td>
                                    <td><input type="text" class="xsmall-input period-months" name="" id="monthly" /></td>
                                </tr>
                                
                                <tr>
                                    <td></td>
                                    <td></td>
                                    <td></td>
                                    <td >إلى:</td>
                                    <td colspan="3">
                                      <div class="show-from-hijri-to"></div>
                                      <input type="hidden" value="" name="hijri-to" id="show-from-hijri-to"/>
                                    </td>
                                    <td></td>
                                    <td></td>
                                </tr>
                         </table>       
                        </div>
                        <h2>الوحدة\ العميل </h2>
                        <div class="bookings-edit-row apartment-row" disabled="disabled">
                        <table class="edit-bookings-table" >
                            	<tr>
                                    <td>الوحدة</td>
                                    <input type="hidden" name="apartment_id" id="apartment_id" value=""/>
                                    <!-- Store latest chosen apartment prices -->
                                    <input type="hidden" name="weekly_price" id="weekly_price" value=""/>
                                    <input type="hidden" name="daily_price" id="daily_price" value=""/>
                                    <input type="hidden" name="monthly_price" id="monthly_price" value=""/>
                                    
                                    
                                    <td style="width:100px;" id="apartment-found">....</td>
                                    <td style="width:60px;"><a href="choose_apartment.php" class="ajax-pop-up"><img src="images/edit.png" class="margin-right5" align="" alt="Edit"/></a></td>
                                    <div id="choose_apartment" class="hidden popup_test_style"> 
                                      
                                    </div>
                                    <div class="client-selection">
                                    <td class="client-selection" disabled="disabled">العميل</td>
                                    <td class="client-found client-selection" disabled="disabled">...</td>
                                    <input type="hidden" name="client_id" id="client_id" value=""/>
                                    <td>
                                    	<a href="choose_client.php" disabled="disabled" class="ajax-pop-up client-selection"><img src="images/magnifying.png" class="margin-right5" align="" title="إختار العميل"alt="Edit"/></a>
                                      <div id="choose_client" disabled="disabled" class="hidden popup_test_style"></div>
                                        <!--<a href="#create_client" class="edit_client_pop"><img src="images/plus.png" class="margin-right5" title="تعديل العميل" align="" alt="Edit"/></a>
                                        <div id="choose_client" class="zoom-anim-dialog mfp-hide popup_test_style ">AJAX Request </div>
                                        <div id="create_client" class="zoom-anim-dialog mfp-hide popup_test_style"> </div>-->
                                    </td>
                                    
                                </tr>
                                <tr>
                                    <td>سعر الوحدة</td>
                                    <td id="apartment-price" >...</td>
                                    <td></td>
                                    
                                    <td class="company-selection" disabled="disabled">الشركة</td>
                                    <td class="company-selection company-found" disabled="disabled">...</td>
                                    <input type="hidden" name="company_id" id="company_id" value=""/>
                                    <input type="hidden" name="company_name" id="company_name" value=""/>
                                    <td class="company-selection" disabled="disabled">
                                    	<div class="company-selection">
                                        <a href="choose_company.php" class="ajax-pop-up"><img src="images/magnifying.png" class="margin-right5" align="" alt="Edit"/>
                                      </a>
                                      <div id="choose_company" class="hidden popup_test_style"></div>
                                        <!--<a href="#edit_client" class="edit_client_pop"><img src="images/plus.png" class="margin-right5" align="" alt="Edit"/></a>
                                        <a href="#edit_client" class="edit_client_pop"><img src="images/edit.png" class="margin-right5" align="" alt="Edit"/></a>
                                        <a href="#edit_client" class="edit_client_pop"><img src="images/x.png" class="margin-right5" align="" alt="Edit"/></a>-->
                                    </div>
                                    
                                    </td><td><p class="discount"></p></td>
                                </tr>
                                
                               
                         </table>       
                        </div>
                        <h2>المالية</h2>
                        <div class="bookings-edit-row">
                        <table class="edit-bookings-table">
                            	<tr>
                                    <td class="disabled-div" disabled="disabled">المقبوضات</td>
                                    <td class="disabled-div" disabled="disabled"><select class="small-select"><option value="select1">...</option></select></td>
                                    <td class="disabled-div" disabled="disabled">
                                    	<a href="#edit_client" class="edit_client_pop"><img src="images/print.png" class="margin-right5" align="" alt="Edit"/></a>
                                        <a href="#edit_client" class="edit_client_pop"><img src="images/plus.png" class="margin-right5" align="" alt="Edit"/></a>
                                        <a href="#edit_client" class="edit_client_pop"><img src="images/magnifying.png" class="margin-right5" align="" alt="Edit"/></a>
                                    </td>
                                    <td class="disabled-div" disabled="disabled">المقبوض</td>
                                    <td class="disabled-div" disabled="disabled">0</td>
                                </tr>
                                
                                <tr>
                                    <td class="disabled-div" disabled="disabled">المصروفات</td>
                                    <td class="disabled-div" disabled="disabled"><select class="small-select"><option value="select1">...</option></select></td>
                                    <td class="disabled-div" disabled="disabled">
                                    	<a href="#edit_client" class="edit_client_pop"><img src="images/print.png" class="margin-right5" align="" alt="Edit"/></a>
                                        <a href="#edit_client" class="edit_client_pop"><img src="images/plus.png" class="margin-right5" align="" alt="Edit"/></a>
                                    </td>
                                    <td class="disabled-div" disabled="disabled">بدل الايجار</td>
                                    <td class="disabled-div" disabled="disabled">0</td>
                                </tr>
                                
                                <tr>
                                    <td class="disabled-div" disabled="disabled">الخدمات</td>
                                    <td class="disabled-div" disabled="disabled"><select class="small-select"><option value="select1">...</option></select></td>
                                    <td class="disabled-div" disabled="disabled">
                                    	<a href="#edit_client" class="edit_client_pop"><img src="images/print.png" class="margin-right5" align="" alt="Edit"/></a>
                                        <a href="#edit_client" class="edit_client_pop"><img src="images/view.png" class="margin-right5" align="" alt="Edit"/></a>
                                    </td>
                                    <td class="disabled-div" disabled="disabled"><!-- التأمين --></td>
                                    <td class="disabled-div" disabled="disabled"><!-- 0 --></td>
                                </tr>
                         </table>
                         <hr />
                         <table class="edit-bookings-table bookings-edit-row discount-control" disabled="disabled">
                            	<tr>
                                    <td style="width:90px;">مبلغ الخصم</td>
                                    <td ><input type="text" class="get-discount small-input" name="discount"  value="0"/></td>
                                    <td class="blue"></td>
                                    <td >التكلفة الكلية</td>
                                    <td class="total_price">0</td>
                                </tr>
                                
                                <tr>
                                    <td></td>
                                    <td style="width:168px;"></td>
                                    <td></td>
                                    <td >التكلفة النهائية</td>
                                    <td class="final_price">0</td>
                                    <input type="hidden" id="final_price" name="final-price" value="0"/>
                                </tr>
                                
                                <tr>
                                    <td></td>
                                    <td></td>
                                    <td class="blue"></td>
                                    <td>الرصيد</td>
                                    <td class="red credit">0</td>
                                </tr>
                         </table>       
                        </div>
                        <h2>ملاحظات</h2>
                        <div class="bookings-edit-row">
                        	<p align="right"><textarea></textarea></p>
                        </div>
                        <input type="hidden" name="what-button" id="what-button" value='1' />
                        <span class="small"><form><input type="checkbox" name="" value="ارسال الى خدمة شموس"></form></span>
                        <div class="save-botton disabled-style left" disabled="disabled" style="width:100px">حفظ</div>
                        <div class="check-in disabled-style left margin-left11" disabled="disabled" style="width:120px">دخول check in</div>
                        <div class="clear"></div>
                        <div class="mfp-close close-button" >x</div>
                        </div>
                        </form>
                      </div>  
